package top.rainf.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * @author 星环
 * @date 2023/5/6 14:25:04
 * @description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Post {
    private int id;
    private int classInfoId;
    private int blockId;
    private int authorId;
    private String title;
    private String content;
    private int replyCount;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
    private int lastReplyUser;
    private int state;

    //dto fields
    private String authorName;
    private int replyCountInTime;
    private String className;
}
